package aooO.crm.mapper;


import aooO.crm.pojo.Customer;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface CustomerMapper {

    ///分页带条件查询所有的记录
    List<Customer> selectCustomerByConditionForPage(Map<String ,Object> map);

    //根据名字查询用户id
    String selectCustomerByName(String name);

    //查询页数
    int selectTotalPage(Map<String,Object> map);

    int insertCustomer(Customer record);

    //queryCustomerNameByFuzzyName  根据名字模糊查询 得到名称列表  感觉应该顺便获得一下id才对啊
    List<String> queryCustomerNameByFuzzyName(String customerName);

    int updateCustomer(Customer customer);

    Customer selectCustomerById(String id);

    Customer selectCustomerDetailById(String id);

    int deleteCustomerByIds(String[] ids);

}